package com.cy.common.util;

import org.apache.shiro.SecurityUtils;

import com.cy.sys.pojo.sysUserPojo;

public class ShiroUtils {

	 public static String getUsername() {
	 	return getUser().getUsername();
	 }
	 public static sysUserPojo getUser() {
		 return (sysUserPojo)SecurityUtils.getSubject().getPrincipal();
	 }
}
